import axios from '../utils/request'
export const recipelListReq = (params) => axios({
    url:'/recipel/list',
    params,
    method: 'get'
})
//根据id查看详情
export const recipelInfobyidReq = (params) => axios({
    url:'/recipel/infobyid',
    params,
    method: 'get'
})
//根据id删除处方
export const recipelDelReq = (params) => axios({
    url:'/recipel/del',
    params,
    method: 'get'
})
//根据id删除所选中的
export const recipelBatchdelReq = (data) => axios({
    url:'/recipel/batchdel',
    data,
    method: 'post'
})
// 搜索
export const recipelSearchReq = (params) => axios({
    url:'/recipel/drugs_search',
    params,
    method: 'get'
})